package com.dudu.controller;


import com.dudu.domain.LearnResource;
import com.dudu.service.LearnService;
import com.dudu.util.AjaxObject;
import com.github.pagehelper.PageInfo;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/** 教程页面
 * Created by tengj on 2017/3/13.
 */
@Controller
@RequestMapping("/learn")
public class LearnController  extends AbstractController{
    @Autowired
    private LearnService learnService;
    private Logger logger = LoggerFactory.getLogger(this.getClass());


    @RequestMapping(value = "/test",method = RequestMethod.POST)
    @ResponseBody
    public AjaxObject addLearn(){
        learnService.testTransactional();
        return AjaxObject.ok();
    }

}